package com.bean;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="stay")
public class Stay {

	@Id
	private String id;
	private String times;
	private ObjectId mId;
	private ObjectId lId;
	private String type;
	private String createDate;
	private String deviceType;
	public Stay(String times, ObjectId mId, ObjectId lId, String type,String createDate,String deviceType) {
		super();
		this.times = times;
		this.mId = mId;
		this.lId = lId;
		this.type = type;
		this.createDate=createDate;
		this.deviceType=deviceType;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTimes() {
		return times;
	}
	public void setTimes(String times) {
		this.times = times;
	}
	public ObjectId getmId() {
		return mId;
	}
	public void setmId(ObjectId mId) {
		this.mId = mId;
	}
	public ObjectId getlId() {
		return lId;
	}
	public void setlId(ObjectId lId) {
		this.lId = lId;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getDeviceType() {
		return deviceType;
	}
	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}
}
